package com.pagoda.nerp.trade.service;

import com.pagoda.nerp.trade.common.exception.NORecordInDBException;
import com.pagoda.nerp.trade.entity.MdQualityRecord;
import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2016/12/15.
 */
public interface QualityService {

    /**
     * 申请质检
     * @param qualityRecord
     * @return
     */
    int applyQualityTest(MdQualityRecord qualityRecord,Object pics) throws Exception;

    /**
     * 查询质检记录列表
     * @return
     */
    List<MdQualityRecord> queryQualityRecordList(Map<String,String> map) throws NORecordInDBException;

    /**
     * 查询质检记录详情
     * @return
     */
    MdQualityRecord queryQualityRecordByID(int qualityRecordId );

    /**
     * 修改申请记录
     * @param qualityRecord
     * @return
     */
    int updateQualityRecord(MdQualityRecord qualityRecord);


    /**
     * 查询质检申请结果
     * @param paramMap
     */
    void queryQualityApplyResult(Map<String,String> paramMap);
}
